export default [
    // mock拿到前端传来的数据
    {
        url: '/apis/login',//请求地址
        method: 'post', //请求方式
        response: (req) => {
            console.log(req.body);
            if (req.body.account === 'admin' && req.body.password === '123456') {
                return {
                    code: 200,
                    msg: '登录成功',
                    data: {
                        token: '1234567890',
                        user: {
                            name: 'admin',
                            phone: '1234567890',
                            address: '梅州市嘉应学院江北校区'
                        }
                    }
                }
            }
            else {
                return {
                    code: 500,
                    msg: '用户名或密码错误'
                }
            }
        },
    },
    {
        //注册

        url: '/apis/register',
        method: 'post',
        response: (req) => {
            console.log(req.body);
            return {
                code: 200,
                msg: '注册成功',
                data: {
                    token: '1234567890'
                }
            }
        }
    },
    {
        url: '/apis/cake/detail',
        method: 'post',
        response: (req) => {
            console.log(req.body);
            if (req.body === 1) {
                return {
                    code: 200,
                    msg: '获取蛋糕详情成功',
                    data: {
                        id: '20406',
                        ahead: '提前5小时预定',
                        goodsId: '8552',
                        twoId: '20405',
                        mainId: '20404',
                        sku: 'C4302',
                        spec: '2.8磅',
                        edible: '4-7人食',
                        name: '诞·愿2024',
                        french: 'Voeux de Noël 2024',
                        price: '318.00',
                        amount: '318.00',
                        size: '18cm*5.5cm',
                        brief: 'MCAKE节日特别限定系列，圣诞节氛围感拉满。以酸奶芝士慕斯作为基底，搭配草莓慕斯和橘柚夹心，新鲜水果点缀，多重口味，一口尽享。',
                        frenchBrief: '',
                        imgNum: '2',
                        appletDesc: [
                            'https://static.mcake.com//uploads/2024/11/26/33314797c725a0072a96c7112aafad375dfafff3.jpg',
                            'https://static.mcake.com//uploads/2024/11/26/d36e4fea2b7ee35246bc09e9a03a425774e8a67c.jpg',
                            'https://static.mcake.com//uploads/2024/11/26/7644ea61ee07bfff56c47a56fd9b8309e74800af.jpg',
                            'https://static.mcake.com//uploads/2024/11/26/7fcd967ff7570c2b3410cccca2a63995b874b6e6.jpg',
                            'https://static.mcake.com//uploads/2024/11/26/c9605e6e0cb6d2a0ddf5ed0527c64d204be3eedb.jpg',
                            'https://static.mcake.com//uploads/2024/11/26/1ecb4d9969d3e71c9baa4e662bd22cf0f7c7cb20.jpg',
                        ],
                        goodsTips: '蛋糕若不及时食用，请放置0-10℃冷藏。',
                        sceneImg: 'https://static.mcake.com//uploads/2024/11/26/92ac235b7e404f4cd02e097252233a9c04d54faa.jpg',
                        pcListImg: 'https://static.mcake.com//uploads/2024/11/26/2605de0a07afffe04f5f547c9f437483461661d7.jpg',
                        img: 'https://static.mcake.com//uploads/2024/11/26/40a1faedfaccd2455bdda12c62cb91d4db423fc0.png',
                        pcImg: [
                            'https://static.mcake.com//uploads/2024/11/26/33314797c725a0072a96c7112aafad375dfafff3.jpg',
                            'https://static.mcake.com//uploads/2024/11/26/d36e4fea2b7ee35246bc09e9a03a425774e8a67c.jpg',
                            'https://static.mcake.com//uploads/2024/11/26/7644ea61ee07bfff56c47a56fd9b8309e74800af.jpg',
                            'https://static.mcake.com//uploads/2024/11/26/7fcd967ff7570c2b3410cccca2a63995b874b6e6.jpg',
                            'https://static.mcake.com//uploads/2024/11/26/c9605e6e0cb6d2a0ddf5ed0527c64d204be3eedb.jpg',
                            'https://static.mcake.com//uploads/2024/11/26/1ecb4d9969d3e71c9baa4e662bd22cf0f7c7cb20.jpg',
                        ],
                        basic: [
                            {
                                id: '219',
                                type: '6',
                                french: 'Flavor',
                                chinese: '口味',
                                title: 'Flavor 口味',
                                value: '水果/芝士',
                            },
                            {
                                id: '384',
                                type: '4',
                                french: 'Base',
                                chinese: '口味基底',
                                title: 'Base 口味基底',
                                value: 'Mousse',
                            },
                            {
                                id: '730',
                                type: '5',
                                french: 'Texture',
                                chinese: '口感',
                                title: 'Texture 口感',
                                value: '绵软细腻/入口即化',
                            },
                            {
                                id: '395',
                                type: '3',
                                french: 'Sweetness',
                                chinese: '甜味指数',
                                title: 'Sweetness 甜味指数',
                                value: '2',
                            },
                        ],
                    },
                }
            }
            else {
                return {
                    code: 200,
                    msg: '获取蛋糕详情成功',
                    "data": {
                        "id": "20520",
                        "ahead": "提前5小时预定",
                        "goodsId": "8629",
                        "twoId": "20519",
                        "mainId": "20518",
                        "sku": "C4402",
                        "spec": "2.5磅",
                        "edible": "4-7人食",
                        "name": "Capricorn·摩羯座",
                        "french": "Capricorn",
                        "price": "318.00",
                        "amount": "318.00",
                        "size": "18cm*17cm*6cm",
                        "brief": "M'CAKE星座系列——摩羯座\n（12.22-1.19）\n土象星座特有的沉静\n温润，从容，足智多谋\n在滚烫的沉默中\n永远忠于理想",
                        "frenchBrief": "",
                        "imgNum": "2",
                        "imgFolder": "new_goods\/mojiezuo",
                        "ossImg": "new_goods\/mojiezuo\/list\/1.jpg",
                        "mainImg": null,
                        "cityId": "110",
                        "status": "1",
                        "forSale": "1",
                        "sendStartDate": "2024-12-22",
                        "sendEndDate": "2025-01-19",
                        "sendStartTime": "10:00:00",
                        "sendEndTime": "20:00:00",
                        "sendSpace": "0",
                        "sendInterval": "0",
                        "advanceDays": "31",
                        "cutTime": "15:00:00",
                        "brandId": "82",
                        "brandName": "mcake",
                        "cateId": "1",
                        "cateName": "蛋糕",
                        "tag": "",
                        "tagId": "3",
                        "tagName": "新品",
                        "tagImg": "promotionTag\/2014082817213389740.png",
                        "wapDesc": "",
                        "shopDesc": "",
                        "appletDesc": [
                            "https:\/\/static.mcake.com\/\/uploads\/2024\/12\/18\/8276660ba165b915cefb838138a9a1c6e7141920.jpg",
                            "https:\/\/static.mcake.com\/\/uploads\/2024\/12\/18\/89934e1eab1130ad91d6917c0e9a78b2bd773df9.jpg",
                            "https:\/\/static.mcake.com\/\/uploads\/2024\/12\/18\/d5c809dcaca7842eae8017b8c0cba7f33a1ad286.jpg",
                            "https:\/\/static.mcake.com\/\/uploads\/2024\/12\/18\/0b91d743747c203c1ea74f0800f8628af769558f.jpg",
                            "https:\/\/static.mcake.com\/\/uploads\/2024\/12\/18\/b19b14f16f0f8dddcf68ead92fd9eeaf2ca5c40c.jpg",
                            "https:\/\/static.mcake.com\/\/uploads\/2024\/12\/18\/98abeb6ff80fa1a33f0fd287b1dc89d4d4399116.jpg",
                            "https:\/\/static.mcake.com\/\/uploads\/2024\/12\/18\/2819cd87fbb7ab4fb380c20aed0b36537e38dfc8.jpg"
                        ],
                        "img": "https:\/\/static.mcake.com\/\/uploads\/2024\/12\/18\/a7518630c74cb542f4ef1dd6509b1e49b132bea5.png",
            
                        "pcImg": [
                            "https:\/\/static.mcake.com\/\/uploads\/2024\/12\/18\/8276660ba165b915cefb838138a9a1c6e7141920.jpg",
                            "https:\/\/static.mcake.com\/\/uploads\/2024\/12\/18\/89934e1eab1130ad91d6917c0e9a78b2bd773df9.jpg",
                            "https:\/\/static.mcake.com\/\/uploads\/2024\/12\/18\/d5c809dcaca7842eae8017b8c0cba7f33a1ad286.jpg",
                            "https:\/\/static.mcake.com\/\/uploads\/2024\/12\/18\/0b91d743747c203c1ea74f0800f8628af769558f.jpg",
                            "https:\/\/static.mcake.com\/\/uploads\/2024\/12\/18\/b19b14f16f0f8dddcf68ead92fd9eeaf2ca5c40c.jpg",
                            "https:\/\/static.mcake.com\/\/uploads\/2024\/12\/18\/98abeb6ff80fa1a33f0fd287b1dc89d4d4399116.jpg",
                            "https:\/\/static.mcake.com\/\/uploads\/2024\/12\/18\/2819cd87fbb7ab4fb380c20aed0b36537e38dfc8.jpg"
                        ],
                        "bannerList": [
                            "https:\/\/static.mcake.com\/\/uploads\/2024\/12\/18\/fcef60e3d7e7baa259956358d472ffdb9430068c.jpg",
                            "https:\/\/static.mcake.com\/\/uploads\/2024\/12\/18\/2e900de13b0796e59788fce7d8d0b3815abc4fef.jpg"
                        ],
                        "basic": [
                            {
                                "id": "720",
                                "type": "6",
                                "french": "Flavor",
                                "chinese": "口味",
                                "title": "Flavor 口味",
                                "value": "椰子\/巧克力\/咖啡"
                            },
                            {
                                "id": "384",
                                "type": "4",
                                "french": "Base",
                                "chinese": "口味基底",
                                "title": "Base 口味基底",
                                "value": "Mousse"
                            },
                            {
                                "id": "297",
                                "type": "5",
                                "french": "Texture",
                                "chinese": "口感",
                                "title": "Texture 口感",
                                "value": "入口即化"
                            },
                            {
                                "id": "395",
                                "type": "3",
                                "french": "Sweetness",
                                "chinese": "甜味指数",
                                "title": "Sweetness 甜味指数",
                                "value": "2"
                            }
                        ],
                   
                      
                    }
                }
            }
        }
    },
    {
        url: '/apis/comment/list',
        method: 'post',
        response: {
            code: 200,
            msg: '获取评论成功',
            data: {
                commentList: [
                    { name: '赵六', content: '非常美味，蛋糕松软细腻。', time: '2022-01-04' },
                    { name: '钱七', content: '前 · 在现代前端开发中，滚动条作为用户与页面内容交互的重要部分，其设计和实现对于提升用户体验具有重要意义。Vue.js 作为流行的前端框架，提供了丰富的', time: '2022-01-05' },
                    { name: '孙八', content: '蛋糕口感丰富，奶油新鲜。', time: '2022-01-06' },
                    { name: '李九', content: '蛋糕装饰精美，味道也很棒。', time: '2022-01-07' },
                    { name: '周十', content: '蛋糕的巧克力味很浓郁，我很喜欢。', time: '2022-01-08' },
                    { name: '吴十一', content: '蛋糕入口即化，是我吃过最好的。', time: '2022-01-09' },
                    { name: '郑十二', content: '蛋糕的草莓很新鲜，酸甜适中。', time: '2022-01-10' },
                    { name: '王十三', content: '蛋糕的层次分明，每一口都是享受。', time: '2022-01-11' },
                    { name: '冯十四', content: '蛋糕的慕斯部分非常滑嫩，值得推荐。', time: '2022-01-12' },
                    { name: '陈十五', content: '蛋糕的焦糖味恰到好处，不会太甜。', time: '2022-01-13' },
                    { name: '褚十六', content: '蛋糕的抹茶味很纯正，口感清新。', time: '2022-01-14' },
                    { name: '卫十七', content: '蛋糕的芝士味浓郁，是我最喜欢的口味。', time: '2022-01-15' },
                    { name: '蒋十八', content: '蛋糕的蓝莓装饰增添了一丝酸甜，很特别。', time: '2022-01-16' },
                    { name: '沈十九', content: '蛋糕的红丝绒质感很细腻，颜色也很诱人。', time: '2022-01-17' }
                ]
            }
        }
    },
    {
        url: '/apis/cart/list',
        method: 'post',
        response: {
            code: 200,
            msg: '获取购物车列表成功',
            data: {
                total: 274,
                totalNum: 3,
                otherPrice: 20,
                cartList: [
                    {
                        id: '1',
                        name: '抹茶星云',
                        french: 'Nébuleuse au matcha',
                        price: '28',
                        count: '2',
                        img: 'https://static.mcake.com//uploads/2024/12/09/194fb34d99d9f7f4e7e00ccaa6a5bd8247b36344.png',
                        describe: "295g(295g)",
                        onCart: true,
                    },
                    {
                        id: '2',
                        name: '桂花山药',
                        french: "Gâteau à l\'igname à l\'osmanthus",
                        price: '218',
                        count: '1',
                        img: 'https://static.mcake.com//uploads/2024/08/05/64c0aa83fa1389b7820d487c8252ebeba1d1febd.png',
                        describe: '1磅(454g)，适合2-3人食，含5套餐具，1支生日蜡烛，1个生日帽',
                        onCart: true,
                    },
                    {
                        id: '3',
                        name: '诞·愿2024',
                        french: 'Voeux de Noël 2024',
                        price: '318',
                        count: '1',
                        img: 'https://static.mcake.com//uploads/2024/11/26/40a1faedfaccd2455bdda12c62cb91d4db423fc0.png',
                        describe: "2.8磅(1.27kg)，适合4-7人食，含10套餐具，1支生日蜡烛，1个生日帽",
                        onCart: false,

                    }
                ]
            }
        }
    }
]
